﻿<%@ page title="" language="C#" masterpagefile="~/MasterPages/MasterPagePrivate.master" autoeventwireup="true" inherits="Pages_Private_SpecialOfferChange, BtcHousing" stylesheettheme="ServerControls" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageHeader" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" Runat="Server">
    <h4 id="h4Heading" runat="server">Submit Special Offer</h4>
    
    <div id="divMessage" runat="server" visible="false" enableviewstate="false"></div>
    
    <div class="clearboth"></div>
    
    <asp:Panel ID="pnlFormContainer" runat="server" DefaultButton="btnSave">
        <%--SpecialOffer Information Group Box Start--%>        
        
        <div class="WizardContainer">
            <div class="StepHeaderContainer">
                <div class="StepHeading">
                    <asp:Label ID="lblFormTitle" runat="server" Text="Special Offer"></asp:Label>
                </div>
                <div class="StepSubHeading"><asp:Label ID="lblFormSubTitle" runat="server" Text="Submit a Special offer and it will be published immediately. But site administrator can remove them in case of any dispute."></asp:Label></div>
            </div>
            <div class="StepBody">
                <table cellpadding="3" cellspacing="0" style="width:100%;">
                    <colgroup>
                        <col style="width:15%;" />
                        <col />                                        
                    </colgroup>
				    <tr>
					    <td>Offer<span class="requiredMark">*</span></td>
					    <td>
						    <asp:TextBox ID="txtTitle" MaxLength="250" runat="server"></asp:TextBox>
						    <asp:RequiredFieldValidator ID="rfvTitle" runat="server"
							    ControlToValidate="txtTitle" SetFocusOnError="true"
							    ErrorMessage="Please Enter Offer." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
					    </td>
				    </tr>
				    <tr>
					    <td>Offer Details<span class="requiredMark">*</span></td>
					    <td>
						    <asp:TextBox ID="txtDescription" TextMode="MultiLine" MaxLength="8000" runat="server"></asp:TextBox>
						    <asp:RequiredFieldValidator ID="rfvDescription" runat="server"
							    ControlToValidate="txtDescription" SetFocusOnError="true"
							    ErrorMessage="Please Enter Offer Details." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
					    </td>
				    </tr>
                    <tr>
					    <td>Picture</td>
					    <td>
                            <div id="divSpecialOfferPreviewContainer" runat="server" visible="false" class="AdverstisementContainer"></div>
						    <asp:FileUpload ID="fuPicture" runat="server" />
                            <asp:CustomValidator ID="cvImageFile" runat="server"
							    SetFocusOnError="true" Display="Dynamic" ValidateEmptyText="true"
                                OnServerValidate="cvImageFile_OnServerValidate"
							    ErrorMessage="<br/>Please Select a Valid Image File for Special Offer."
							    ValidationGroup="SaveInfo">
						    </asp:CustomValidator>						    
					    </td>
				    </tr>
                    <tr>
					    <td>City</td>
					    <td>                            
						    <asp:DropDownList ID="ddlCity" runat="server" OnSelectedIndexChanged="ddlCity_SelectedIndexChanged" AutoPostBack="true" style="width:auto; min-width:175px;"></asp:DropDownList>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
							    ControlToValidate="ddlCity" SetFocusOnError="true"
							    ErrorMessage="Please Select a City." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
					    </td>
				    </tr>
                    <tr>
					    <td>Zone</td>
					    <td>                            
						    <asp:DropDownList ID="ddlZone" runat="server" style="width:auto; min-width:175px;"></asp:DropDownList>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"
							    ControlToValidate="ddlZone" SetFocusOnError="true"
							    ErrorMessage="Please Select a Zone." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
					    </td>
				    </tr>
                    <tr>
					    <td><asp:Label ID="lblProjectType" runat="server" Text="Type of Project"></asp:Label></td>
					    <td>                            
						    <asp:DropDownList ID="ddlProjectType" runat="server" style="width:auto; min-width:175px;"></asp:DropDownList>
                            <asp:RequiredFieldValidator ID="rfvProjectType" runat="server"
							    ControlToValidate="ddlProjectType" SetFocusOnError="true"
							    ErrorMessage="Please Select a Type of Project." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
					    </td>
				    </tr>                   
				    <tr>
					    <td>Has Published?</td>
					    <td>
						    <asp:CheckBox ID="chkHasPublished" runat="server" Text="Yes"/>
					    </td>
				    </tr>                    
                </table>
            </div>
            <div class="StepButtonContainer">
                <asp:Button ID="btnSave" runat="server" Text="Submit" ValidationGroup="SaveInfo" OnClick="btnSave_Click" />            
                <asp:Button ID="btnList" runat="server" Text="View List" OnClick="btnList_Click"  CssClass="ButtonInActive"/>            
            </div>
        </div>
        <%--SpecialOffer Information Group Box End--%>
   </asp:Panel>
</asp:Content>

